<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${cxt }/">
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/newessay1.css" />

<script type="text/javascript" src="js/tinymce.min.js"></script>
<script src="js/jquery.js"></script>
<script type="text/javascript">
			tinymce.init({
				selector: "textarea#elm1",
				theme: "modern",
				width: '99%',
				height: 300,
				language: "zh_CN",
				plugins: [
					"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
					"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
					"save table contextmenu directionality emoticons template paste textcolor"
				],
				content_css: "css/content.css",
				toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | print preview media fullpage | forecolor backcolor emoticons",
				style_formats: [{
						title: 'Bold text',
						inline: 'b'
					},
					{
						title: 'Red text',
						inline: 'span',
						styles: {
							color: '#ff0000'
						}
					},
					{
						title: 'Red header',
						block: 'h1',
						styles: {
							color: '#ff0000'
						}
					},
					{
						title: 'Example 1',
						inline: 'span',
						classes: 'example1'
					},
					{
						title: 'Example 2',
						inline: 'span',
						classes: 'example2'
					},
					{
						title: 'Table styles'
					},
					{
						title: 'Table row 1',
						selector: 'tr',
						classes: 'tablerow1'
					},
				]
			});
		</script>
</head>
<body>
	<div id="header">
		<div class="topcolor"></div>
		<div class="header-top clearfix">
			<div class="logo fl">
				<img src="img/adminlogo.gif" />
			</div>
			<div class="blogname fr">
				<a href="personalcenter">${user.user_name }</a>
			</div>
		</div>
		<div class="title">随笔</div>
	</div>

	<div id="main" class="clearfix">
		<div>
			<div class="leftnavheader fl">操作</div>
			<div class="rightblank"></div>
		</div>
		<div class="mainwrap">
			<div class="main-con fl">
				<ul class="main-left">
					<li><a href="javascript:void(0);" onclick="flush(1);">» 添加新随笔</a></li>
					<li><a href="javascript:void(0);" onclick="flush(2);">» 草稿箱</a></li>
					<li><a href="javascript:void(0);" onclick="flush(3);">» 发表博客</a></li>
				</ul>

			</div>
			<div class="main-right">
				<iframe id="blognav" name="blognav" frameborder=0 width="100%"
					height=1000 marginheight=0 marginwidth=0 scrolling=no
					src="newessayEdit"></iframe>
			</div>
		</div>
	</div>
</body>

<script>
function flush(num){
	if(num==1){
		$("#blognav").attr("src","newessayEdit");
	}
	if(num==2){
		$("#blognav").attr("src","newessayDraft");
	}
	if(num==3){
		$("#blognav").attr("src","newessay/post12");
	}
}
	</script>
</html>